package ipad.asia.utils;

import org.springframework.stereotype.Component;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

@Component
public class FileLocation {
    public static String path(String FileName) {
        File directory = new File("");
        String localPath = null;
        try {
             localPath = directory.getCanonicalPath()+"/e-shop-api/src/main/resources/upload";
        } catch (IOException e) {
            e.printStackTrace();
        }
        return localPath+"/"+FileName;
    }
}
